<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: printf/mathio.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_012ec66c173e5cefcc171f0e37014eef.html">printf</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">mathio.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>String to number conversions with floating point support.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdint.h&gt;</code><br />
<code>#include &lt;stdarg.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &quot;<a class="el" href="mathio_8h_source.html">mathio.h</a>&quot;</code><br />
<code>#include &lt;math.h&gt;</code><br />
</div>
<p><a href="mathio_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a8c0b521d598596dde4e31d56f672ad76"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mathio_8c.html#a8c0b521d598596dde4e31d56f672ad76">atodigit</a> (int c, int radix)</td></tr>
<tr class="memdesc:a8c0b521d598596dde4e31d56f672ad76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert ASCII character to radix based digit , or -1.  <a href="#a8c0b521d598596dde4e31d56f672ad76">More...</a><br /></td></tr>
<tr class="separator:a8c0b521d598596dde4e31d56f672ad76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65e529a87a8bcaf0b2cb9b6edc3a8fde"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mathio_8c.html#a65e529a87a8bcaf0b2cb9b6edc3a8fde">atoh</a> (const char *p)</td></tr>
<tr class="memdesc:a65e529a87a8bcaf0b2cb9b6edc3a8fde"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert ASCII hex string to long integer.  <a href="#a65e529a87a8bcaf0b2cb9b6edc3a8fde">More...</a><br /></td></tr>
<tr class="separator:a65e529a87a8bcaf0b2cb9b6edc3a8fde"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fb184d7bd50561c60bf64b7cda0eb62"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mathio_8c.html#a5fb184d7bd50561c60bf64b7cda0eb62">aton</a> (char *str, int base)</td></tr>
<tr class="memdesc:a5fb184d7bd50561c60bf64b7cda0eb62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert ASCII string to number in a given base.  <a href="#a5fb184d7bd50561c60bf64b7cda0eb62">More...</a><br /></td></tr>
<tr class="separator:a5fb184d7bd50561c60bf64b7cda0eb62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee46e805a6a25105661e6486a419fdc3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mathio_8c.html#aee46e805a6a25105661e6486a419fdc3">mul10str</a> (<a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *str, int size)</td></tr>
<tr class="memdesc:aee46e805a6a25105661e6486a419fdc3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fast multiply number of any size by 10.  <a href="#aee46e805a6a25105661e6486a419fdc3">More...</a><br /></td></tr>
<tr class="separator:aee46e805a6a25105661e6486a419fdc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7a25f0631dd53c026fd8636e8bcb42e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mathio_8c.html#ae7a25f0631dd53c026fd8636e8bcb42e">strtol</a> (const char *nptr, char **endptr, int base)</td></tr>
<tr class="memdesc:ae7a25f0631dd53c026fd8636e8bcb42e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert ASCII string to number in a given base.  <a href="#ae7a25f0631dd53c026fd8636e8bcb42e">More...</a><br /></td></tr>
<tr class="separator:ae7a25f0631dd53c026fd8636e8bcb42e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00a26430103adfe060136c98afc39cab"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mathio_8c.html#a00a26430103adfe060136c98afc39cab">strtoll</a> (const char *nptr, char **endptr, int base)</td></tr>
<tr class="memdesc:a00a26430103adfe060136c98afc39cab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert ASCII string to number in a given base.  <a href="#a00a26430103adfe060136c98afc39cab">More...</a><br /></td></tr>
<tr class="separator:a00a26430103adfe060136c98afc39cab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae640e0202e5f4904efa121a07af97c5e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mathio_8c.html#ae640e0202e5f4904efa121a07af97c5e">atoi</a> (const char *str)</td></tr>
<tr class="memdesc:ae640e0202e5f4904efa121a07af97c5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert ASCII string to number in base 10.  <a href="#ae640e0202e5f4904efa121a07af97c5e">More...</a><br /></td></tr>
<tr class="separator:ae640e0202e5f4904efa121a07af97c5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae952cb1ae6aec6b2b6c02ae67e9ea87b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mathio_8c.html#ae952cb1ae6aec6b2b6c02ae67e9ea87b">atol</a> (const char *str)</td></tr>
<tr class="memdesc:ae952cb1ae6aec6b2b6c02ae67e9ea87b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert ASCII string to number in base 10.  <a href="#ae952cb1ae6aec6b2b6c02ae67e9ea87b">More...</a><br /></td></tr>
<tr class="separator:ae952cb1ae6aec6b2b6c02ae67e9ea87b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>String to number conversions with floating point support. </p>
<dl class="section user"><dt>Copyright &copy; 2014-2017 Mike Gore, All rights reserved. GPL License</dt><dd></dd></dl>
<dl class="section see"><dt>See also</dt><dd><a href="http://github.com/magore/hp85disk">http://github.com/magore/hp85disk</a> </dd>
<dd>
<a href="http://github.com/magore/hp85disk/COPYRIGHT.md">http://github.com/magore/hp85disk/COPYRIGHT.md</a> for specific Copyright details</dd></dl>
<dl class="section user"><dt>You are free to use this code under the terms of GPL</dt><dd>please retain a copy of this notice in any code you use it in.</dd></dl>
<p>This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>

<p>Definition in file <a class="el" href="mathio_8c_source.html">mathio.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a8c0b521d598596dde4e31d56f672ad76"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int atodigit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>radix</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert ASCII character to radix based digit , or -1. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>character </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">radix</td><td>radix </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>radix based digit , or -1 </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="mathio_8c.html#ae7a25f0631dd53c026fd8636e8bcb42e" title="Convert ASCII string to number in a given base. ">strtol</a> </dd></dl>

<p>Definition at line <a class="el" href="mathio_8c_source.html#l00058">58</a> of file <a class="el" href="mathio_8c_source.html">mathio.c</a>.</p>

<p>Referenced by <a class="el" href="web_8c_source.html#l01116">process_args()</a>, <a class="el" href="mathio_8c_source.html#l00136">strtol()</a>, and <a class="el" href="mathio_8c_source.html#l00183">strtoll()</a>.</p>

</div>
</div>
<a class="anchor" id="a65e529a87a8bcaf0b2cb9b6edc3a8fde"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long atoh </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert ASCII hex string to long integer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p</td><td>String to convert.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>long integer result. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="mathio_8c.html#ae7a25f0631dd53c026fd8636e8bcb42e" title="Convert ASCII string to number in a given base. ">strtol()</a> for return overflow and underflow results. </dd></dl>

<p>Definition at line <a class="el" href="mathio_8c_source.html#l00079">79</a> of file <a class="el" href="mathio_8c_source.html">mathio.c</a>.</p>

</div>
</div>
<a class="anchor" id="ae640e0202e5f4904efa121a07af97c5e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int atoi </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert ASCII string to number in base 10. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>string </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>int value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="mathio_8c.html#ae7a25f0631dd53c026fd8636e8bcb42e" title="Convert ASCII string to number in a given base. ">strtol</a> </dd></dl>

<p>Definition at line <a class="el" href="mathio_8c_source.html#l00281">281</a> of file <a class="el" href="mathio_8c_source.html">mathio.c</a>.</p>

<p>Referenced by <a class="el" href="web_8c_source.html#l01030">html_status()</a>, <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>, <a class="el" href="web_8c_source.html#l01535">parse_http_request()</a>, <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>, <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>, and <a class="el" href="user__main_8c_source.html#l00631">user_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="ae952cb1ae6aec6b2b6c02ae67e9ea87b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long atol </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert ASCII string to number in base 10. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>string </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>long value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="mathio_8c.html#ae7a25f0631dd53c026fd8636e8bcb42e" title="Convert ASCII string to number in a given base. ">strtol</a> </dd></dl>

<p>Definition at line <a class="el" href="mathio_8c_source.html#l00295">295</a> of file <a class="el" href="mathio_8c_source.html">mathio.c</a>.</p>

<p>Referenced by <a class="el" href="fatfs__tests_8c_source.html#l00101">fatfs_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a5fb184d7bd50561c60bf64b7cda0eb62"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long aton </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>base</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert ASCII string to number in a given base. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>string </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>radix </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>long value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="mathio_8c.html#ae7a25f0631dd53c026fd8636e8bcb42e" title="Convert ASCII string to number in a given base. ">strtol</a> </dd></dl>

<p>Definition at line <a class="el" href="mathio_8c_source.html#l00093">93</a> of file <a class="el" href="mathio_8c_source.html">mathio.c</a>.</p>

</div>
</div>
<a class="anchor" id="aee46e805a6a25105661e6486a419fdc3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int mul10str </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fast multiply number of any size by 10. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>string </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>string size </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>non-zero on overflow , 0 if ok </dd></dl>

<p>Definition at line <a class="el" href="mathio_8c_source.html#l00108">108</a> of file <a class="el" href="mathio_8c_source.html">mathio.c</a>.</p>

</div>
</div>
<a class="anchor" id="ae7a25f0631dd53c026fd8636e8bcb42e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long strtol </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>nptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>endptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>base</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert ASCII string to number in a given base. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">nptr</td><td>string </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">endptr</td><td>pointer to string pointer return value </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>radix </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>long value </dd></dl>

<p>Definition at line <a class="el" href="mathio_8c_source.html#l00136">136</a> of file <a class="el" href="mathio_8c_source.html">mathio.c</a>.</p>

<p>Referenced by <a class="el" href="mathio_8c_source.html#l00079">atoh()</a>, <a class="el" href="mathio_8c_source.html#l00281">atoi()</a>, <a class="el" href="mathio_8c_source.html#l00295">atol()</a>, <a class="el" href="mathio_8c_source.html#l00093">aton()</a>, <a class="el" href="stringsup_8c_source.html#l00706">get_value()</a>, <a class="el" href="testflash_8c_source.html#l00052">main()</a>, <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>, and <a class="el" href="time_8c_source.html#l00919">setdate_r()</a>.</p>

</div>
</div>
<a class="anchor" id="a00a26430103adfe060136c98afc39cab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long long strtoll </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>nptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>endptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>base</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert ASCII string to number in a given base. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">nptr</td><td>string </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">endptr</td><td>pointer to string pointer return value </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>radix </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>long long </dd></dl>

<p>Definition at line <a class="el" href="mathio_8c_source.html#l00183">183</a> of file <a class="el" href="mathio_8c_source.html">mathio.c</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:17 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
